package com.xi.springboot.entity;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: xjs
 * @Date: 2022/11/19/15:52
 * @Description:
 */
@Data
public class Result {
    private Object data;
    private Boolean flag;
    private String msg;

    public Result(Object data, String msg) {
        this.data = data;
        this.msg = msg;
    }

    public Result(String msg) {
        this.msg = msg;
    }

    public Result(Object data) {
        this.data = data;
    }

    public Result(Boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }

    public Result(Object data, Boolean flag, String msg) {
        this.data = data;
        this.flag = flag;
        this.msg = msg;
    }

    public Result() {
    }
}
